import React from "react";
import {
  PictureOutlined,
  ScissorOutlined,
  CompressOutlined,
  SwapOutlined,
  FontColorsOutlined,
  FileImageOutlined,
  BgColorsOutlined,
} from "@ant-design/icons";

import {
  FileTextOutlined,
  FileMarkdownOutlined,
  CodeOutlined,
  KeyOutlined,
} from "@ant-design/icons";

export const imgToolsData: {
  title: string;
  icon: React.ReactNode;
  description: string;
  link: string;
  isDeveloping?: boolean;
}[] = [
  {
    title: "图片与Base64互转",
    icon: <CompressOutlined />,
    description: "将图片转换为Base64编码，或将Base64编码转换为图片",
    link: "/image-tools/image-and-base64",
  },
  {
    title: "svg预览与下载",
    icon: <SwapOutlined />,
    description: "将svg代码转换为svg预览图，并提供下载",
    link: "/image-tools/svg-code-to-svg-file",
  },
  {
    title: "图片裁剪",
    icon: <ScissorOutlined />,
    description:
      "对图片进行裁剪/缩切/剪切操作，支持自定义裁剪区域，适用于裁剪图片并保存裁剪后的图片文件。",
    link: "/image-tools/image-cropping",
  },
  {
    title: "水印添加",
    icon: <FontColorsOutlined />,
    description: "为图片添加文字或图像水印，保护您的知识产权",
    link: "/image-tools/img-watermark",
  },
  {
    title: "图片拼接",
    icon: <PictureOutlined />,
    description: "将多张图片拼接为一张，支持水平和垂直拼接",
    link: "/image-tools/image-splicing",
    isDeveloping: false,
  },
  {
    title: "背景移除",
    icon: <BgColorsOutlined />,
    description: "智能移除图片背景，生成透明背景的图片",
    link: "/image-tools/background-removal",
    isDeveloping: true,
  },
  {
    title: "二维码生成",
    icon: <FileImageOutlined />,
    description: "生成自定义二维码，可添加logo和调整颜色",
    link: "/image-tools/qr-code-generation",
    isDeveloping: true,
  },
  {
    title: "图片滤镜",
    icon: <PictureOutlined />,
    description: "为图片应用各种滤镜效果，增强图片效果",
    link: "/image-tools/image-filter",
    isDeveloping: true,
  },
];

export const textToolsData: {
  title: string;
  icon: React.ReactNode;
  description: string;
  link: string;
  isDeveloping?: boolean;
}[] = [
  {
    title: "文本对比",
    icon: <FileTextOutlined />,
    description: "对比两段文本之间的差异，高亮显示不同之处",
    link: "/text-tools/text-comparison",
    isDeveloping: false,
  },
  {
    title: "JSON格式化",
    icon: <CodeOutlined />,
    description: "美化、验证、转换 JSON 数据，使其更易于阅读和编辑",
    link: "/text-tools/json-format",
    isDeveloping: false,
  },
  {
    title: "文本去重",
    icon: <KeyOutlined />,
    description:
      "智能逐行处理文本，自动去除重复行，支持保留空行和大小写敏感设置，适用于日志处理、数据清洗等场景",
    link: "/text-tools/text-deduplication",
    isDeveloping: false,
  },
  {
    title: "文本去除两端空格",
    icon: <FileMarkdownOutlined />,
    description:
      "去除文本内容两端的空格，支持去除每行文本两端空格和整体文本两端空格。",
    link: "/text-tools/text-trim",
    isDeveloping: false,
  },
  {
    title: "px转rem",
    icon: <KeyOutlined />,
    description: "将px转换为rem，支持批量转换",
    link: "/text-tools/px2rem",
    isDeveloping: false,
  },
  {
    title: "文本转换",
    icon: <FileTextOutlined />,
    description: "大小写转换、驼峰命名、下划线命名等多种文本格式化工具",
    link: "/text-tools/text-conversion",
    isDeveloping: true,
  },
  {
    title: "URL编解码",
    icon: <KeyOutlined />,
    description: "对URL进行编码和解码，确保正确处理特殊字符",
    link: "/text-tools/url-encode-decode",
    isDeveloping: true,
  },
];

export const otherToolsData: {
  title: string;
  icon: React.ReactNode;
  description: string;
  link: string;
  isDeveloping?: boolean;
}[] = [
  {
    title: "番茄专注",
    icon: <FileTextOutlined />,
    description: "番茄专注是一款帮助您提高工作效率的工具",
    link: "/other-tools/tomato-focus",
    isDeveloping: false,
  },
];
